package com.yp.emp.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@AllArgsConstructor
@ToString
@NoArgsConstructor
@Data
public class Emp implements Serializable {
    private int    eno;
    private String ename;
    private String esex;
    private double salary;
    private String pwd;
    private Data   bornDate;
    private int    dno;
    private String phone;

    private Dept d;

    public Emp(String ename, String esex) {
        this.ename = ename;
        this.esex = esex;
    }

    public Emp(String ename, String esex, double salary, String pwd, Data bornDate, int dno, String phone) {
        this.ename = ename;
        this.esex = esex;
        this.salary = salary;
        this.pwd = pwd;
        this.bornDate = bornDate;
        this.dno = dno;
        this.phone = phone;


    }
}
